package com.lm.batch.job;

import org.springframework.batch.item.ItemWriter;

import java.util.List;

public class CustomerItemWriter implements ItemWriter<String> {


    @Override
    public void write(List<? extends String> items) throws Exception {
        // 将数据输出到控制台，或者写入到文件/数据库
        for (String item : items) {
            System.out.println(item);
        }
    }
}
